import java.util.Date;

import javax.sql.DataSource;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import pojo.Customer;
import service.CustomerManager;
import dao.CustomerDao;


public class Action {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		CustomerDao customerDao = context.getBean(CustomerDao.class);
		CustomerManager customerManager = context.getBean(CustomerManager.class);
		Customer c = new Customer("4fc04999-28a4-4949-b200-8d6213aa07d2", "ziv233", 12, new Date(), 6.5, true);
		customerManager.updateCustomer(c);
//		int m=customerDao.deleteCustomerById("10086");
//		System.out.println(m);
	}
}
